﻿using System;
using System.Collections.Generic;
using System.Security.Permissions;

namespace HlELock.Domain.Entities
{
    /// <summary>
    /// 发卡记录
    /// </summary>
    public class SendCard : EntityBase
    {
        /// <summary>
        /// 发卡类型
        /// </summary>
        public CardType CardType { get; set; }

        /// <summary>
        /// 楼栋
        /// </summary>
        public int BuildingNumber { get; set; }

        /// <summary>
        /// 楼层
        /// </summary>
        public int FloorNumber { get; set; }

        /// <summary>
        /// 房间号
        /// </summary>
        public string RoomNumber { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? BeginTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        public string Operator { get; set; }

        /// <summary>
        /// 持卡人
        /// </summary>
        public string Holder { get; set; }

        /// <summary>
        /// 持卡人工号
        /// </summary>
        public string HolderNumber { get; set; }

        /// <summary>
        /// 证件号码
        /// </summary>
        public string IdNumber { get; set; }

        /// <summary>
        /// 返回码
        /// </summary>
        public string ReturnCode { get; set; }

    }
    public enum CardType
    {
        客户人,
        授权卡,
        时间卡,
        记录卡,
        清除卡,
        信息卡,
        组控设置卡,
        门禁设置卡,
        指纹录入卡,
        指纹清除卡
    }
}
